package com.jiezhuo.entity;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("sys_file_doc")
@ApiModel(value="fileDoc对象", description="文件表")
public class SysFileDoc implements Serializable {
    private static final long serialVersionUID = 1L;


	@ApiModelProperty(value = "")
	private Integer id;

	@ApiModelProperty(value = "")
	private String url;

	@ApiModelProperty(value = "")
	private String name;

	@ApiModelProperty(value = "")
	private String size;

	@ApiModelProperty(value = "")
	private Integer level;

	@ApiModelProperty(value = "")
	private String pattern;

	@ApiModelProperty(value = "")
	private Integer types;

	@ApiModelProperty(value = "")
	private String remark;
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
	@ApiModelProperty(value = "")
	private Date createTime;
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
	@ApiModelProperty(value = "")
	private Date updateTime;

	@ApiModelProperty(value = "")
	private Integer sort;

	@JsonProperty("id")
	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id =  id;
	}
	@JsonProperty("url")
	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url =  url;
	}
	@JsonProperty("name")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name =  name;
	}
	@JsonProperty("size")
	public String getSize() {
		return size;
	}

	public void setSize(String size) {
		this.size =  size;
	}
	@JsonProperty("level")
	public Integer getLevel() {
		return level;
	}

	public void setLevel(Integer level) {
		this.level =  level;
	}
	@JsonProperty("pattern")
	public String getPattern() {
		return pattern;
	}

	public void setPattern(String pattern) {
		this.pattern =  pattern;
	}
	@JsonProperty("types")
	public Integer getTypes() {
		return types;
	}

	public void setTypes(Integer types) {
		this.types =  types;
	}
	@JsonProperty("remark")
	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark =  remark;
	}
	@JsonProperty("createTime")
	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime =  createTime;
	}
	@JsonProperty("updateTime")
	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime =  updateTime;
	}
	@JsonProperty("sort")
	public Integer getSort() {
		return sort;
	}

	public void setSort(Integer sort) {
		this.sort =  sort;
	}


	public SysFileDoc(Integer id,String url,String name,String size,Integer level,String pattern,Integer types,String remark,Date createTime,Date updateTime,Integer sort) {

		this.id = id;

		this.url = url;

		this.name = name;

		this.size = size;

		this.level = level;

		this.pattern = pattern;

		this.types = types;

		this.remark = remark;

		this.createTime = createTime;

		this.updateTime = updateTime;

		this.sort = sort;

	}

	public SysFileDoc() {
	    super();
	}

//	public String dateToStringConvert(Date date) {
//		if(date!=null) {
//			return DateUtil.format(date, "yyyy-MM-dd HH:mm:ss");
//		}
//		return "";
//	}


}
